3.504 \(\int \frac{(c+d \sin (e+f x))^{5/2}}{a+a \sin (e+f x)} \, dx\)

Optimal. Leaf size=246 \[ \frac{(3 c-5 d) \left (c^2-d^2\right ) \sqrt{\frac{c+d \sin (e+f x)}{c+d}} F\left (\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )|\frac{2 d}{c+d}\right )}{3 a f \sqrt{c+d \sin (e+f x)}}-\frac{\left (3 c^2-20 c d+9 d^2\right ) \sqrt{c+d \sin (e+f x)} E\left (\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )|\frac{2 d}{c+d}\right )}{3 a f \sqrt{\frac{c+d \sin (e+f x)}{c+d}}}-\frac{(c-d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{f (a \sin (e+f x)+a)}+\frac{d (3 c-5 d) \cos (e+f x) \sqrt{c+d \sin (e+f x)}}{3 a f} \]

[Out]

((3*c - 5*d)*d*Cos[e + f*x]*Sqrt[c + d*Sin[e + f*x]])/(3*a*f) - ((c - d)*Cos[e + f*x]*(c + d*Sin[e + f*x])^(3/
2))/(f*(a + a*Sin[e + f*x])) - ((3*c^2 - 20*c*d + 9*d^2)*EllipticE[(e - Pi/2 + f*x)/2, (2*d)/(c + d)]*Sqrt[c +
 d*Sin[e + f*x]])/(3*a*f*Sqrt[(c + d*Sin[e + f*x])/(c + d)]) + ((3*c - 5*d)*(c^2 - d^2)*EllipticF[(e - Pi/2 +
f*x)/2, (2*d)/(c + d)]*Sqrt[(c + d*Sin[e + f*x])/(c + d)])/(3*a*f*Sqrt[c + d*Sin[e + f*x]])

________________________________________________________________________________________

Rubi [A]  time = 0.381304, antiderivative size = 246, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.259, Rules used = {2767, 2753, 2752, 2663, 2661, 2655, 2653} \[ \frac{(3 c-5 d) \left (c^2-d^2\right ) \sqrt{\frac{c+d \sin (e+f x)}{c+d}} F\left (\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )|\frac{2 d}{c+d}\right )}{3 a f \sqrt{c+d \sin (e+f x)}}-\frac{\left (3 c^2-20 c d+9 d^2\right ) \sqrt{c+d \sin (e+f x)} E\left (\frac{1}{2} \left (e+f x-\frac{\pi }{2}\right )|\frac{2 d}{c+d}\right )}{3 a f \sqrt{\frac{c+d \sin (e+f x)}{c+d}}}-\frac{(c-d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{f (a \sin (e+f x)+a)}+\frac{d (3 c-5 d) \cos (e+f x) \sqrt{c+d \sin (e+f x)}}{3 a f} \]

Antiderivative was successfully verified.

[In]

Int[(c + d*Sin[e + f*x])^(5/2)/(a + a*Sin[e + f*x]),x]

[Out]

((3*c - 5*d)*d*Cos[e + f*x]*Sqrt[c + d*Sin[e + f*x]])/(3*a*f) - ((c - d)*Cos[e + f*x]*(c + d*Sin[e + f*x])^(3/
2))/(f*(a + a*Sin[e + f*x])) - ((3*c^2 - 20*c*d + 9*d^2)*EllipticE[(e - Pi/2 + f*x)/2, (2*d)/(c + d)]*Sqrt[c +
 d*Sin[e + f*x]])/(3*a*f*Sqrt[(c + d*Sin[e + f*x])/(c + d)]) + ((3*c - 5*d)*(c^2 - d^2)*EllipticF[(e - Pi/2 +
f*x)/2, (2*d)/(c + d)]*Sqrt[(c + d*Sin[e + f*x])/(c + d)])/(3*a*f*Sqrt[c + d*Sin[e + f*x]])

Rule 2767

Int[((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_)/((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> -Simp[((
b*c - a*d)*Cos[e + f*x]*(c + d*Sin[e + f*x])^(n - 1))/(a*f*(a + b*Sin[e + f*x])), x] - Dist[d/(a*b), Int[(c +
d*Sin[e + f*x])^(n - 2)*Simp[b*d*(n - 1) - a*c*n + (b*c*(n - 1) - a*d*n)*Sin[e + f*x], x], x], x] /; FreeQ[{a,
 b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[n, 1] && (IntegerQ[2
*n] || EqQ[c, 0])

Rule 2753

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> -Simp[(d
*Cos[e + f*x]*(a + b*Sin[e + f*x])^m)/(f*(m + 1)), x] + Dist[1/(m + 1), Int[(a + b*Sin[e + f*x])^(m - 1)*Simp[
b*d*m + a*c*(m + 1) + (a*d*m + b*c*(m + 1))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*
c - a*d, 0] && NeQ[a^2 - b^2, 0] && GtQ[m, 0] && IntegerQ[2*m]

Rule 2752

Int[((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])/Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]], x_Symbol] :> Dist[(b*c
 - a*d)/b, Int[1/Sqrt[a + b*Sin[e + f*x]], x], x] + Dist[d/b, Int[Sqrt[a + b*Sin[e + f*x]], x], x] /; FreeQ[{a
, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]

Rule 2663

Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Dist[Sqrt[(a + b*Sin[c + d*x])/(a + b)]/Sqrt[a
+ b*Sin[c + d*x]], Int[1/Sqrt[a/(a + b) + (b*Sin[c + d*x])/(a + b)], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a
^2 - b^2, 0] &&  !GtQ[a + b, 0]

Rule 2661

Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticF[(1*(c - Pi/2 + d*x))/2, (2*b)
/(a + b)])/(d*Sqrt[a + b]), x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]

Rule 2655

Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Dist[Sqrt[a + b*Sin[c + d*x]]/Sqrt[(a + b*Sin[c +
 d*x])/(a + b)], Int[Sqrt[a/(a + b) + (b*Sin[c + d*x])/(a + b)], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 -
 b^2, 0] &&  !GtQ[a + b, 0]

Rule 2653

Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*Sqrt[a + b]*EllipticE[(1*(c - Pi/2 + d*x)
)/2, (2*b)/(a + b)])/d, x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]

Rubi steps

\begin{align*} \int \frac{(c+d \sin (e+f x))^{5/2}}{a+a \sin (e+f x)} \, dx &=-\frac{(c-d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{f (a+a \sin (e+f x))}-\frac{d \int \left (-\frac{1}{2} a (5 c-3 d)+\frac{1}{2} a (3 c-5 d) \sin (e+f x)\right ) \sqrt{c+d \sin (e+f x)} \, dx}{a^2}\\ &=\frac{(3 c-5 d) d \cos (e+f x) \sqrt{c+d \sin (e+f x)}}{3 a f}-\frac{(c-d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{f (a+a \sin (e+f x))}-\frac{(2 d) \int \frac{-\frac{1}{4} a \left (15 c^2-12 c d+5 d^2\right )+\frac{1}{4} a \left (3 c^2-20 c d+9 d^2\right ) \sin (e+f x)}{\sqrt{c+d \sin (e+f x)}} \, dx}{3 a^2}\\ &=\frac{(3 c-5 d) d \cos (e+f x) \sqrt{c+d \sin (e+f x)}}{3 a f}-\frac{(c-d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{f (a+a \sin (e+f x))}+\frac{\left ((3 c-5 d) \left (c^2-d^2\right )\right ) \int \frac{1}{\sqrt{c+d \sin (e+f x)}} \, dx}{6 a}-\frac{\left (3 c^2-20 c d+9 d^2\right ) \int \sqrt{c+d \sin (e+f x)} \, dx}{6 a}\\ &=\frac{(3 c-5 d) d \cos (e+f x) \sqrt{c+d \sin (e+f x)}}{3 a f}-\frac{(c-d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{f (a+a \sin (e+f x))}-\frac{\left (\left (3 c^2-20 c d+9 d^2\right ) \sqrt{c+d \sin (e+f x)}\right ) \int \sqrt{\frac{c}{c+d}+\frac{d \sin (e+f x)}{c+d}} \, dx}{6 a \sqrt{\frac{c+d \sin (e+f x)}{c+d}}}+\frac{\left ((3 c-5 d) \left (c^2-d^2\right ) \sqrt{\frac{c+d \sin (e+f x)}{c+d}}\right ) \int \frac{1}{\sqrt{\frac{c}{c+d}+\frac{d \sin (e+f x)}{c+d}}} \, dx}{6 a \sqrt{c+d \sin (e+f x)}}\\ &=\frac{(3 c-5 d) d \cos (e+f x) \sqrt{c+d \sin (e+f x)}}{3 a f}-\frac{(c-d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{f (a+a \sin (e+f x))}-\frac{\left (3 c^2-20 c d+9 d^2\right ) E\left (\frac{1}{2} \left (e-\frac{\pi }{2}+f x\right )|\frac{2 d}{c+d}\right ) \sqrt{c+d \sin (e+f x)}}{3 a f \sqrt{\frac{c+d \sin (e+f x)}{c+d}}}+\frac{(3 c-5 d) \left (c^2-d^2\right ) F\left (\frac{1}{2} \left (e-\frac{\pi }{2}+f x\right )|\frac{2 d}{c+d}\right ) \sqrt{\frac{c+d \sin (e+f x)}{c+d}}}{3 a f \sqrt{c+d \sin (e+f x)}}\\ \end{align*}

Mathematica [A]  time = 1.36459, size = 298, normalized size = 1.21 \[ \frac{\left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right )^2 \left (-d \left (15 c^2-12 c d+5 d^2\right ) \sqrt{\frac{c+d \sin (e+f x)}{c+d}} F\left (\frac{1}{4} (-2 e-2 f x+\pi )|\frac{2 d}{c+d}\right )+\left (3 c^2-20 c d+9 d^2\right ) \sqrt{\frac{c+d \sin (e+f x)}{c+d}} \left ((c+d) E\left (\frac{1}{4} (-2 e-2 f x+\pi )|\frac{2 d}{c+d}\right )-c F\left (\frac{1}{4} (-2 e-2 f x+\pi )|\frac{2 d}{c+d}\right )\right )-2 d^2 \cos (e+f x) (c+d \sin (e+f x))-3 (c-d)^2 (c+d \sin (e+f x))+\frac{6 (c-d)^2 \sin \left (\frac{1}{2} (e+f x)\right ) (c+d \sin (e+f x))}{\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )}\right )}{3 a f (\sin (e+f x)+1) \sqrt{c+d \sin (e+f x)}} \]

Antiderivative was successfully verified.

[In]

Integrate[(c + d*Sin[e + f*x])^(5/2)/(a + a*Sin[e + f*x]),x]

[Out]

((Cos[(e + f*x)/2] + Sin[(e + f*x)/2])^2*(-3*(c - d)^2*(c + d*Sin[e + f*x]) - 2*d^2*Cos[e + f*x]*(c + d*Sin[e
+ f*x]) + (6*(c - d)^2*Sin[(e + f*x)/2]*(c + d*Sin[e + f*x]))/(Cos[(e + f*x)/2] + Sin[(e + f*x)/2]) - d*(15*c^
2 - 12*c*d + 5*d^2)*EllipticF[(-2*e + Pi - 2*f*x)/4, (2*d)/(c + d)]*Sqrt[(c + d*Sin[e + f*x])/(c + d)] + (3*c^
2 - 20*c*d + 9*d^2)*((c + d)*EllipticE[(-2*e + Pi - 2*f*x)/4, (2*d)/(c + d)] - c*EllipticF[(-2*e + Pi - 2*f*x)
/4, (2*d)/(c + d)])*Sqrt[(c + d*Sin[e + f*x])/(c + d)]))/(3*a*f*(1 + Sin[e + f*x])*Sqrt[c + d*Sin[e + f*x]])

________________________________________________________________________________________

Maple [B]  time = 1.304, size = 1372, normalized size = 5.6 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c+d*sin(f*x+e))^(5/2)/(a+a*sin(f*x+e)),x)

[Out]

1/3*(cos(f*x+e)^2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1/(c-d)*c)^(1/2),((c-d)/(c+d))^(1/2))*c^3*d+6*(d/(c-d)*sin(f*x+e)+1/(c-d)*c)^(1/2)*(-d/(c
+d)*sin(f*x+e)+d/(c+d))^(1/2)*(-d/(c-d)*sin(f*x+e)-d/(c-d))^(1/2)*EllipticE((d/(c-d)*sin(f*x+e)+1/(c-d)*c)^(1/
2),((c-d)/(c+d))^(1/2))*c^2*d^2+20*(d/(c-d)*sin(f*x+e)+1/(c-d)*c)^(1/2)*(-d/(c+d)*sin(f*x+e)+d/(c+d))^(1/2)*(-
d/(c-d)*sin(f*x+e)-d/(c-d))^(1/2)*EllipticE((d/(c-d)*sin(f*x+e)+1/(c-d)*c)^(1/2),((c-d)/(c+d))^(1/2))*c*d^3-9*
(d/(c-d)*sin(f*x+e)+1/(c-d)*c)^(1/2)*(-d/(c+d)*sin(f*x+e)+d/(c+d))^(1/2)*(-d/(c-d)*sin(f*x+e)-d/(c-d))^(1/2)*E
llipticE((d/(c-d)*sin(f*x+e)+1/(c-d)*c)^(1/2),((c-d)/(c+d))^(1/2))*d^4-2*d^4*sin(f*x+e)*cos(f*x+e)^2-3*c^2*cos
(f*x+e)^2*d^2+4*cos(f*x+e)^2*c*d^3-3*cos(f*x+e)^2*d^4+3*c^3*d*sin(f*x+e)-9*c^2*d^2*sin(f*x+e)+9*c*d^3*sin(f*x+
e)-3*d^4*sin(f*x+e)-3*c^3*d+9*c^2*d^2-9*c*d^3+3*d^4)/d/(-(c+d*sin(f*x+e))*(-1+sin(f*x+e))*(1+sin(f*x+e)))^(1/2
)/a/cos(f*x+e)/(c+d*sin(f*x+e))^(1/2)/f

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (d \sin \left (f x + e\right ) + c\right )}^{\frac{5}{2}}}{a \sin \left (f x + e\right ) + a}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))^(5/2)/(a+a*sin(f*x+e)),x, algorithm="maxima")

[Out]

integrate((d*sin(f*x + e) + c)^(5/2)/(a*sin(f*x + e) + a), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (-\frac{{\left (d^{2} \cos \left (f x + e\right )^{2} - 2 \, c d \sin \left (f x + e\right ) - c^{2} - d^{2}\right )} \sqrt{d \sin \left (f x + e\right ) + c}}{a \sin \left (f x + e\right ) + a}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))^(5/2)/(a+a*sin(f*x+e)),x, algorithm="fricas")

[Out]

integral(-(d^2*cos(f*x + e)^2 - 2*c*d*sin(f*x + e) - c^2 - d^2)*sqrt(d*sin(f*x + e) + c)/(a*sin(f*x + e) + a),
 x)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))**(5/2)/(a+a*sin(f*x+e)),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (d \sin \left (f x + e\right ) + c\right )}^{\frac{5}{2}}}{a \sin \left (f x + e\right ) + a}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))^(5/2)/(a+a*sin(f*x+e)),x, algorithm="giac")

[Out]

integrate((d*sin(f*x + e) + c)^(5/2)/(a*sin(f*x + e) + a), x)